#ifndef QLINEEDITEX_H
#define QLINEEDITEX_H
#include <QLineEdit>
#include <QEvent>
#include <QWidget>
#include <QToolTip>
#include <QPoint>
#include <QCursor>
#include <QLabel>
#include <QString>


enum DidType
{
    DidType_7E,
    DidType_645
};


class QLineEditEx : public QLineEdit
{
public:
    explicit QLineEditEx();
    QLineEditEx(QWidget *parent = 0, enum DidType did_type = DidType_7E);
    void enterEvent(QEvent * event);
    void leaveEvent(QEvent *event);
    void setDidType(enum DidType tmp){did_type = tmp;}
    void showDidAnalysis(bool);

private:
    QWidget *pMainWin;
    QLabel *label_tip;
    QLabel *label_bubble_arrow;//气泡箭头背景图
    enum DidType did_type;

};



#endif // QLINEEDITEX_H
